home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / MenuBar.h < prev    next >
C/C++ Source or Header  |  1992-06-30  |  681b  |  35 lines

  1. #ifndef MenuBar_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define MenuBar_First
  7.  
  8. #include "Box.h"
  9.  
  10. class PullDownButton;
  11. class Menu;
  12.  
  13. //---- MenuBar -----------------------------------------------------------------
  14.  
  15. class MenuBar: public Box {
  16. public:
  17.     MetaDef(MenuBar);
  18.     MenuBar(Collection *c= 0);
  19.     void AddMenu(Menu *pdm);
  20.     Metric GetMinSize();
  21.     void SetExtent(Point e);
  22.     void SetOrigin(Point at);
  23.     void Draw(Rectangle r);
  24.     Command *DispatchEvents(Point lp, Token &t, Clipper *vf);
  25.     VObject *FindItem(Point);
  26.     int CheckKey(Token &t);
  27.     Menu *FindMenu(int id);
  28.  
  29. protected:
  30.     CompositeVObject *mb;
  31.     VObject *help;
  32. };
  33.  
  34. #endif
  35.